package org.br.erp.base.creditcheckrule.service;

import org.br.erp.base.creditcheckrule.entity.Scmcreditcheckruleitem;
import org.br.erp.base.creditcheckrule.entity.Scmcreditcheckruleattach;
import org.br.erp.base.creditcheckrule.entity.Scmcreditcheckrule;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 信贷检查规则
 * @Author: jeecg-boot
 * @Date:   2024-03-26
 * @Version: V1.0
 */
public interface IScmcreditcheckruleService extends IService<Scmcreditcheckrule> {

	/**
	 * 添加一对多
	 *
	 * @param scmcreditcheckrule
	 * @param scmcreditcheckruleitemList
	 * @param scmcreditcheckruleattachList
	 */
	public void saveMain(Scmcreditcheckrule scmcreditcheckrule,List<Scmcreditcheckruleitem> scmcreditcheckruleitemList,List<Scmcreditcheckruleattach> scmcreditcheckruleattachList) ;
	
	/**
	 * 修改一对多
	 *
   * @param scmcreditcheckrule
   * @param scmcreditcheckruleitemList
   * @param scmcreditcheckruleattachList
	 */
	public void updateMain(Scmcreditcheckrule scmcreditcheckrule,List<Scmcreditcheckruleitem> scmcreditcheckruleitemList,List<Scmcreditcheckruleattach> scmcreditcheckruleattachList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);
	
}
